Skip to content

[stable-4.0] Bugfix/migrate user encryption certificate#9612

Merged
mgallien merged 5 commits intostable-4.0from
backport/9568/stable-4.0
Mar 12, 2026
Merged

[stable-4.0] Bugfix/migrate user encryption certificate#9612
mgallien merged 5 commits intostable-4.0from
backport/9568/stable-4.0

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 12, 2026

Backport of #9568

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
we need updated user certificate before we upload new encryption
metadata to ensure they are generated with the correct certificate and
private key

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
ensure we do store in the metadata file the properly encrypted metadata
key

ensure we would update the user own certificate before eventually
encrypting again the metadata key

do this before we would try to write the metadata file and ensure it is
writtent with updated values instead of getting a copy of the old values
(before the certificate change)

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien mgallien force-pushed the backport/9568/stable-4.0 branch from a16a9c0 to 750e435 Compare March 12, 2026 12:10
@mgallien mgallien marked this pull request as ready for review March 12, 2026 12:11
@mgallien mgallien merged commit f28aecc into stable-4.0 Mar 12, 2026
16 of 17 checks passed
@mgallien mgallien deleted the backport/9568/stable-4.0 branch March 12, 2026 12:13
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
54.9% Coverage on New Code (required ≥ 80%)
6.1% Duplication on New Code (required ≤ 3%)
B Maintainability Rating on New Code (required ≥ A)
26 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant